package com.igeek.health.result;

import java.io.Serializable;
import java.util.List;

/**
 * @Author chenmin
 * @Description 封装分页返回结果
 */
public class PageResult implements Serializable {

    //总记录数
    private Long total;
    //当前页结果
    private List rows;

    public PageResult() {
    }

    public PageResult(Long total, List rows) {
        this.total = total;
        this.rows = rows;
    }

    /**
     * 获取
     * @return total
     */
    public Long getTotal() {
        return total;
    }

    /**
     * 设置
     * @param total
     */
    public void setTotal(Long total) {
        this.total = total;
    }

    /**
     * 获取
     * @return rows
     */
    public List getRows() {
        return rows;
    }

    /**
     * 设置
     * @param rows
     */
    public void setRows(List rows) {
        this.rows = rows;
    }

    public String toString() {
        return "PageResult{total = " + total + ", rows = " + rows + "}";
    }
}
